<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopDistrictTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_district', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name',20)->comment('区县名称');
            $table->integer('city_id')->comment('城市id');
            $table->string('letter',4)->comment('首字母');
            $table->integer('sort')->default(1)->comment('排序');
            $table->tinyInteger('status',4)->default(1)->comment('状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shops_district');
    }
}
